package com.liveneo.adapter.mobile.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liveneo.adapter.base.entity.PrpmLossItemHistory;
import com.liveneo.adapter.base.mapper.PrpmLossItemHistoryMapper;
import com.liveneo.adapter.mobile.service.PrpmLossItemHistoryService;

@Service
public class PrpmLossItemHistoryServiceImpl implements PrpmLossItemHistoryService {
	@Autowired
	private PrpmLossItemHistoryMapper prpmLossItemHistoryMapper;

	@Override
	public int save(PrpmLossItemHistory prpmLossItemHistory) throws Exception {
		// TODO Auto-generated method stub
		return prpmLossItemHistoryMapper.insert(prpmLossItemHistory);
	}

	@Override
	public int saveList(List<PrpmLossItemHistory> prpmLossItemHistoryList) throws Exception {
		return prpmLossItemHistoryMapper.insertBatch(prpmLossItemHistoryList);
	}
}
